<template>
  <el-pagination
    background
    layout="prev, pager, next"
    v-model:currentPage="state.pagerInfo.pagerIndex"
    :page-size="state.pagerInfo.pagerSize"
    :total="state.pagerInfo.count"
  >
  </el-pagination>
</template>


<script lang="ts">
  import { defineComponent } from 'vue'
  import { ElPagination } from 'element-plus'
  import { getListState } from '../controller/test-list'
 
  export default defineComponent({
    name: 'nf-elp-grid-page',
    components: {
      ElPagination
    },
    props: {
     
    },
    setup() {
      
      // 获取里面定义的局部状态
      const state = getListState()

      return {
        state
      }
    }
  })

</script>